Keep the min-height set on the div in your css, I would then use jquery's height function to figure out the paragraph height. Try this in your javascript.
Keep the min-height set on the div in your css, I would then use jquery's height function to figure out the paragraph height. Try this in your javascript: $(document). Ready(function(){ var h = $('div p').height(); $('div').
Css("height", h); }).
I'll use this method if there is no pure CSS method that works :) – Nyxynyxx Jul 2 at 13:55 Sanders: My divs do not exist until the user causes a mouseover event to fire. How should I target the div? – Nyxynyxx Jul 2 at 14:13.
As Jleagle said, you have to use min-height. For the most browsers: height: auto! Important; height: 100px; min-height: 100px.
– Nyxynyxx Jul 2 at 10:38 1 To make "newer" browsers igonring the height property. The Internet Explorer will ignore "height: auto" and "min-height", but it handels "height" like "min-heigh". – Blauesocke Jul 2 at 10:41.
Append this to the styles of your div and everything should work fine, also for older browsers: min-height:100px; height:auto! Important; height:100px.
Height of div when set to auto lets the content inside it decide its length. However min-height does an override and lets you have a min height for the div.
You set the min-height of the div, and then you deal with older version of IE via a standard CSS hack: /* Because of the `* html` part, it only applies in IE, other browsers ignore it */ * html #theDiv { height: 100px; } /* Most browsers use this instead */ #theDiv { min-height: 100px; } Live example.
You seem to be missing the word-wrap property. I have tested the following styles in ie9 and chrome. It seems to be working fine.
Some long paragraph of content here kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.